package com.ltsh.fim.web.handler;

import com.alibaba.fastjson.JSONObject;
import com.ltsh.fim.common.model.FimRequest;
import com.ltsh.fim.server.inf.ServerHandler;
import com.ltsh.fim.server.model.resp.ResultResp;
import com.ltsh.fim.service.entity.UserInfo;

public class LoginHandler implements ServerHandler {
    @Override
    public ResultResp handler(FimRequest request) {
        System.out.println("loggin");
        UserInfo userInfo = JSONObject.parseObject(request.getData(), UserInfo.class);


//        ApplicationContext.getSqlManager().insert(userInfo);

        return new ResultResp();
    }
}
